home *** CD-ROM | disk | FTP | other *** search
- Path: news.clark.net!not-for-mail
- From: eamick@clark.net (Eric Amick)
- Newsgroups: comp.lang.c
- Subject: Re: using pipe() and dup2??????
- Date: 2 Mar 1996 02:35:55 GMT
- Organization: the end of my rope
- Message-ID: <4h8c6b$n9g@clarknet.clark.net>
- References: <4h21f7$osc@maltese.eag.unisysgsg.com> <4h3sbq$n35@charm.il.ft.hse.nl>
- NNTP-Posting-Host: explorer.clark.net
- Mime-Version: 1.0
- Content-Type: TEXT/PLAIN; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
- X-Newsreader: TIN [UNIX 1.3 950726BETA PL0]
-
- robert (robert@il.ft.hse.nl) wrote:
- >You should try popen(), which works much easier:
- >After this, you can use fp with most file-stream functions (fread(), fgets(),
- >fclose()).
-
- pclose(), not fclose(), is used to close the stream pointer created by
- popen().
-
- --
- Eric Amick eamick@clark.net
- Columbia, MD Public key available via finger
-